<include file="public@header" />
<style>
	table{ border:1px solid #000; width:80%; font-size:1rem; margin-bottom:20px}
	td{border:1px solid #000; padding:0 5px; height:2rem; text-align:center}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Aftersale/paperwork')}">基本信息</a></li>
            <li class="active"><a href="{:U('Aftersale/dataupload')}">资料上传</a></li>
            <li><a href="{:U('Aftersale/move')}">审核意见</a></li>
            <li><a href="{:U('Aftersale/move')}">缴费打证</a></li>
		</ul>
        
        <table>
        	<tr>
            	<td colspan="8">
                	<strong>客户信息验证</strong>
                </td>
            </tr>
        	<tr>
            	<td>
                	合同编号
                </td>
            	<td>
                	读取
                </td>
            	<td>
                	客户姓名
                </td>
            	<td>
                	读证
                </td>
            	<td>
                	证件类型
                </td>
            	<td>
                	读证
                </td>
            	<td>
                	证件编号
                </td>
            	<td>
                	读证
                </td>
            </tr>
            <tr>
            	<td>
                	联系电话
                </td>
            	<td>
                	读取
                </td>
            	<td>
                	联系地址
                </td>
            	<td colspan="5">
                	读取
                </td>
            </tr>
            <tr>
            	<td>
                	购买日期
                </td>
            	<td>
                	读取
                </td>
            	<td>
                	质保期
                </td>
            	<td>
                	读取
                </td>
            	<td>
                	购买距今
                </td>
            	<td>
                	计算剩余时间
                </td>
            	<td>
                	当前状态
                </td>
            	<td>
                	读取状态
                </td>
            </tr>
        </table>
        
        <form class="form-horizontal js-ajax-form" action="{:U('store/add_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
                <div class="control-group">
                    <label class="control-label" style="color:red">温馨提示：</label>
                    <div class="controls" style="color:red; margin-top:4px">
                        使用人健在提供身份证，过世则提供火化证明，过世且不能提供火化证明，则需提供购买凭证
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">上传凭证</label>
                    <div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('购买凭证/使用人证件', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*购买凭证/使用人证件</span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('关系证明', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*关系证明</span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('挂失证明', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*挂失证明</span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('持证人身份证', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*持证人身份证</span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('签章的变更业务表', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*签章的变更业务表</span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('迁墓合同', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*委托书</span>
                    </div>
                </div>
			</fieldset>
			<div class="form-actions">
            	<div class="btn btn-primary" id="check-btn">保存</div>
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
    
	<script type="text/javascript">
	 // 提交订单
	$("#check-btn").click(function(){
		$.post($("form").attr('action'), $("form").serialize(), function(result){
			if(result.state == 'success'){
				alert("保存成功！");
				$('#js-dialog-close').click();
			} else {
				alert(result.info);
			}
		}, 'json');
	});
	
    </script>

</body>
</html>